-
Notifications
You must be signed in to change notification settings - Fork 0
springboot 3.4.9 #708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AbdelHedhili
wants to merge
11
commits into
main
Choose a base branch
from
springboot3.4.9
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
springboot 3.4.9 #708
+139
−67
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Abdelsalem <[email protected]>
Signed-off-by: Abdelsalem <[email protected]>
FranckLecuyer
approved these changes
Oct 23, 2025
Signed-off-by: Abdelsalem <[email protected]>
Springboot now uses httpclients detected from the classpath,
in our case ReactorClient. The workaround is to go back to using restclient
simple as the resttemplate implementation in networkstore service.
This has the additional advantage of avoiding 20 exta threads for netty..
For some reason (I don't know if it's a bug in
reactor client or a bug in our code...), during network store flush
after a modification, sometimes one of the http requests never returns
from reactorclient. So our code blocks infinitely in the message consumer
waiting for the http requests to return (waitAllFutures)
Additionally, we can see in the network store server logs "java.net.SocketTimeoutException"
after 30s.
Threads when blocked
Thread A
at app//com.powsybl.network.store.client.util.ExecutorUtil.waitAllFutures(ExecutorUtil.java:52)
at app//com.powsybl.network.store.client.BufferedNetworkStoreClient.flush(BufferedNetworkStoreClient.java:599)
at app//com.powsybl.network.store.iidm.impl.AbstractForwardingNetworkStoreClient.flush(AbstractForwardingNetworkStoreClient.java:18)
at app//com.powsybl.network.store.iidm.impl.AbstractForwardingNetworkStoreClient.flush(AbstractForwardingNetworkStoreClient.java:18)
at app//com.powsybl.network.store.client.NetworkStoreService.flush(NetworkStoreService.java:246)
at app//org.gridsuite.modification.server.modifications.NetworkStoreListener.flushModificationApplications(NetworkStoreListener.java:264)
"pool-2-thread-2" - Thread t@111
java.lang.Thread.State: WAITING
at [email protected]/jdk.internal.misc.Unsafe.park(Native Method)
- parking to wait for <26231e99> (a java.util.concurrent.CountDownLatch$Sync)
at [email protected]/java.util.concurrent.locks.LockSupport.park(Unknown Source)
at [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source)
at [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(Unknown Source)
at [email protected]/java.util.concurrent.CountDownLatch.await(Unknown Source)
at app//reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:91)
at app//reactor.core.publisher.Mono.block(Mono.java:1779)
at app//org.springframework.http.client.ReactorClientHttpRequest.executeInternal(ReactorClientHttpRequest.java:129)
at app//org.springframework.http.client.AbstractStreamingClientHttpRequest.executeInternal(AbstractStreamingClientHttpRequest.java:71)
at app//org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:81)
at app//org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:900)
at app//org.springframework.web.client.RestTemplate.execute(RestTemplate.java:801)
at app//org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:683)
at app//com.powsybl.network.store.client.RestClientImpl.updateAll(RestClientImpl.java:134)
Also, because we kind of miscoded the NetworkStoreService, it can't use standards spring boot systems
(RestTemplateCustomizer, or --spring.http.client.factory=simple) to change its behavior, so we have
to override it fully with @primary
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



No description provided.